public class Punto{
	private int x; 
	private int y;
	public Punto(int x, int y){
		this.x = x;
		this.y = y;
	}

	public int getX(){
		return this.x;
	}

	public int getY(){
		return this.y;
	}

	public void setX(int x){
		this.x = x;
	}

	public void setY(int y){
		this.y = y;
	}

	public static Distancia calculateDistance2(Punto p1, Punto p2){
		Distancia d;
		double dd;
		//d = new Distancia(this, p);
		dd = Math.pow((p1.getX() - p2.getX()), 2) + Math.pow((p1.getY() - p2.getY()), 2);
		dd = Math.sqrt(dd);
		d = new Distancia();
		d.setD(dd);
		return d;
	}
}
